<template>
  <van-swipe class="my-swipe" :autoplay="2000" indicator-color="white">
        <van-swipe-item v-for="item in banner" :key='item.id'><img :src="item.image_url"></van-swipe-item>
    </van-swipe>
</template>

<script>
export default {
    data(){
        return{}
    },
    props:['banner'],

}
</script>

<style lang='less' scoped>
  .my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
    background-color: #39a9ed;
    img{
        width: 100%;
        height: auto;
    }
  }
</style>